<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>详细</title>
</head>
<body>


	<div class="container-fluid">
		<div class="modal-header">
			<button type="button" class="close" data-ng-click="Model.cancel()" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h5>{{Model.title}}</h5>
		</div>
		<div class="modal-body">

			<div class="container-fluid" style="padding: 0px;">
				<form class="form-horizontal" name="inventory_itemBatch_single_form">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">物料编码</label>
								<div class="col-sm-8">
								<div class="input-group">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].itemNo.value"
										placeHolder="" name="itemNo" readonly>
						<span class="input-group-btn">
			            	<button class="btn btn-default btn-sm" ng-click="Model.triggerItemNoClick()"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
			            </span> 
						</div><!-- /input-group -->
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_orderDate"
									class="col-sm-4 control-label">日期</label>
								<div class="col-sm-8">
										<input type="text" class="form-control"
											id="inventory_itemBatch_single_form_orderDate"
											simple-datepicker orientation="bottom auto"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].orderDate.value"
											name="orderDate" placeholder="yyyy-MM-dd">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label 
									class="col-sm-4 control-label">启用</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].status.value"
										bootstrap-switch data-size="small"
										data-ng-true-value="'open'" data-ng-false-value="'close'">
								</div>
							</div>
						</div>
					</div>
					<div class="row">

						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_itemDescribe"
									class="col-sm-4 control-label">物料名称</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].itemName.value"
										id="inventory_itemBatch_single_form_itemDescribe" name="itemDescribe"
										readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">规格</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].itemProperty.value" readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_unitName"
									class="col-sm-4 control-label">单位</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].unitName.value"
										id="inventory_itemBatch_single_form_unitName" name="unitName"
										required readonly>
								</div>
							</div>
						</div>

					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm has-warning">
								<label for="inventory_itemBatch_single_form_batchNo"
									class="col-sm-4 control-label">批号</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].batchNo.value"
										id="inventory_itemBatch_single_form_batchNo"
										name="batchNo" required>
								</div>
							</div>
						</div>
						<div class="col-sm-8">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_batchDescribe"
									class="col-sm-2 control-label">批号说明</label>
								<div class="col-sm-10">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].batchDescribe.value"
										id="inventory_itemBatch_single_form_batchDescribe" name="batchDescribe"
										>
								</div>
							</div>
						</div>
						
					</div>
					<div class="row">

						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_produceDate"
									class="col-sm-4 control-label">生产日期</label>
								<div class="col-sm-8">
										<input type="text" class="form-control"
											id="inventory_itemBatch_single_form_produceDate"
											simple-datepicker orientation="bottom auto"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].produceDate.value"
											name="produceDate" placeholder="yyyy-MM-dd">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_validDate"
									class="col-sm-4 control-label">有效日期</label>
								<div class="col-sm-8">
										<input type="text" class="form-control"
											id="inventory_itemBatch_single_form_validDate"
											simple-datepicker orientation="bottom auto"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].validDate.value"
											name="validDate" placeholder="yyyy-MM-dd">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_checkoutAgainDate"
									class="col-sm-4 control-label">复检日期</label>
								<div class="col-sm-8">
										<input type="text" class="form-control"
											id="inventory_itemBatch_single_form_checkoutAgainDate"
											simple-datepicker orientation="bottom auto"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].checkoutAgainDate.value"
											name="checkoutAgainDate" placeholder="yyyy-MM-dd">
								</div>
							</div>
						</div>
					</div>
					<div class="row">

						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_firstStoreDate" title="最早入库日期"
									class="col-sm-4 control-label">入库日期</label>
								<div class="col-sm-8">
										<input type="text" class="form-control"
											id="inventory_itemBatch_single_form_firstStoreDate"
											simple-datepicker orientation="bottom auto"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].firstStoreDate.value"
											ng-disabled="true" name="firstStoreDate" placeholder="yyyy-MM-dd">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_lastCheckDate" title="上次盘点日期"
									class="col-sm-4 control-label">盘点日期</label>
								<div class="col-sm-8">
										<input type="text" class="form-control"
											id="inventory_itemBatch_single_form_lastCheckDate"
											simple-datepicker orientation="bottom auto"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].lastCheckDate.value"
											name="lastCheckDate" placeholder="yyyy-MM-dd">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_itemBatch_single_form_qualityPeriod" title="上次盘点日期"
									class="col-sm-4 control-label">保质期</label>
								<div class="col-sm-8">
					<input type="checkbox" class="form-control" readonly="readonly"
						data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].qualityPeriod.value"
						bootstrap-switch data-size="small"
						on-color="danger" off-color="" 
						on-text="已启用" off-text="未启用"
						data-ng-true-value="1" data-ng-false-value="0">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">库存数量</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].itemQuantityL.value" readonly>
								</div>
							</div>
						</div>
					</div>

				</form>
			
				<uib-tabset> 
				<uib-tab heading="品牌产地"> <br>
				<form class="form-horizontal" name="inventory_itemBatch_single_form_baseinfo">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">品牌</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].brandLabel.value"
										name="brandLabel">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">产地</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].placeOrigin.value"
										name="placeOrigin">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-8">
							<div class="form-group form-group-sm">
								<label class="col-sm-2 control-label">制造商</label>
								<div class="col-sm-10">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].manufacturer.value"
										name="manufacturer">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">来源</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].originName.value" readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">来源单号</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].originNo.value" readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">来源序号</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].originSerialNo.value" readonly>
								</div>
							</div>
						</div>
					</div>					
					<div class="row">
						<div class="col-sm-8">
							<div class="form-group form-group-sm">
								<label class="col-sm-2 control-label">供方</label>
								<div class="col-sm-10">
								<div class="input-group">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].providerName.value"
										name="providerName" readonly>
									<span class="input-group-btn">
						            	<button class="btn btn-default btn-sm" ng-click=""><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
						            </span> 
								</div><!-- /input-group -->
								</div>
							</div>
						</div>
					</div>
						
				</form>

				</uib-tab>
				<uib-tab heading="备注"><br>
				<form class="form-horizontal" name="inventory_itemBatch_single_form_comments">
					<div class="row">
						<div class="col-sm-12">
							<div class="form-group">
								<label for="inventory_itemBatch_single_form_comments"
									class="col-sm-1 control-label">备注</label>
								<div class="col-sm-11">
									<textarea rows="5" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].comments.value"
										id="inventory_itemBatch_single_form_comments">
									</textarea>
								</div>
							</div>

						</div>
					</div>
				</form>
				</uib-tab> 
				</uib-tabset>



			</div>


		</div>
		<!-- modal-body结束 -->

		<div class="modal-footer">
			<button class="btn btn-primary"
				data-ng-disabled="inventory_itemBatch_single_form.billType.$dirty && inventory_itemBatch_single_form.billType.$invalid 
			|| inventory_itemBatch_single_form.billType.$error.required 
			|| inventory_itemBatch_single_form.orderDate.$dirty && inventory_itemBatch_single_form.orderDate.$invalid 
			|| inventory_itemBatch_single_form.orderDate.$error.required 
			|| inventory_itemBatch_single_form.itemNo.$dirty && inventory_itemBatch_single_form.itemNo.$invalid 
			|| inventory_itemBatch_single_form.itemNo.$error.required 
			|| inventory_itemBatch_single_form.batchNo.$dirty && inventory_itemBatch_single_form.batchNo.$invalid 
			|| inventory_itemBatch_single_form.batchNo.$error.required 
			"
				data-ng-click="Model.ok()">确定</button>
			<button class="btn btn-warning" data-ng-click="Model.cancel()">取消</button>
		</div>

	</div>




</body>
</html>